﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace GMS.Core.Config
{
    [Serializable]
    public class APIMappingConfig : ConfigFileBase
    {
        public APIMappingConfig() { }

        public APIMapping[] APIMappings { get; set; }

    }

    [Serializable]
    public class APIMapping
    {
        private string _name = string.Empty;
        [XmlAttribute("name")]
        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }
        private string _version = string.Empty;
        [XmlAttribute("version")]
        public string Version
        {
            get { return _version; }
            set { _version = value; }
        }
        private string _context = string.Empty;
        [XmlAttribute("context")]
        public string Context
        {
            get { return _context; }
            set { _context = value; }
        }
        private string _methods = string.Empty;
        [XmlAttribute("methods")]
        public string Methods
        {
            get { return _methods; }
            set { _methods = value; }
        }
        private string _transports = string.Empty;
        [XmlAttribute("transports")]
        public string Transports
        {
            get { return _transports; }
            set { _transports = value; }
        }
        private string _urlPattern = string.Empty;
        [XmlAttribute("urlPattern")]
        public string UrlPattern
        {
            get { return _urlPattern; }
            set { _urlPattern = value; }
        }
        private string _productionURL = string.Empty;
        [XmlAttribute("productionURL")]
        public string ProductionURL
        {
            get { return _productionURL; }
            set { _productionURL = value; }
        }
        private string _sandboxURL = string.Empty;
        [XmlAttribute("sandboxURL")]
        public string SandboxURL
        {
            get { return _sandboxURL; }
            set { _sandboxURL = value; }
        }

        private string _description = string.Empty;
        [XmlAttribute("description")]
        public string Description
        {
            get { return _description; }
            set { _description = value; }
        }


    }
}